import 'dart:async';

import 'package:example_flutter/models/chuck_categories.dart';
import 'package:example_flutter/networking/api_provider.dart';

class ChuckCategoryRepository {
  ApiProvider _provider = ApiProvider();

  Future<ChuckCategories> fetchChuckCategoryData() async {
    final response = await _provider.get('jokes/categories');
    return ChuckCategories.fromJson(response);
  }
}